package com.pro.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class BeforeUser {
  private Integer userId;//id
  private String photoImg;//照片
  private String account;//用户账号
  private String nickname;//用户昵称
  private Integer userCode;//用户学号
  private String avatarUrl;//头像路径
  private Integer studyDate;//学习时常
  private Integer status;//状态
  private String freestyle;//个性签名
  private String idCard;//身份证号码
  private String phone;//手机号码
  private Integer sex;//用户性别
  @DateTimeFormat(pattern = "yyyy-HH-dd")
  @JsonFormat(pattern = "yyyy-HH-dd hh:mm:ss")
  private Date birthDate;//出生日期
  private String email;//邮箱
  private String remarks;//备注
  private String intention;//求职意向
  private String consumption;//消费总金额
  private Integer createId;//创建者
  @DateTimeFormat(pattern = "yyyy-HH-dd")
  @JsonFormat(pattern = "yyyy-HH-dd hh:mm:ss")
  private String createDate;//创建时间

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public String getPhotoImg() {
    return photoImg;
  }

  public void setPhotoImg(String photoImg) {
    this.photoImg = photoImg;
  }

  public String getAccount() {
    return account;
  }

  public void setAccount(String account) {
    this.account = account;
  }

  public String getNickname() {
    return nickname;
  }

  public void setNickname(String nickname) {
    this.nickname = nickname;
  }

  public Integer getUserCode() {
    return userCode;
  }

  public void setUserCode(Integer userCode) {
    this.userCode = userCode;
  }

  public String getAvatarUrl() {
    return avatarUrl;
  }

  public void setAvatarUrl(String avatarUrl) {
    this.avatarUrl = avatarUrl;
  }

  public Integer getStudyDate() {
    return studyDate;
  }

  public void setStudyDate(Integer studyDate) {
    this.studyDate = studyDate;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public String getFreestyle() {
    return freestyle;
  }

  public void setFreestyle(String freestyle) {
    this.freestyle = freestyle;
  }

  public String getIdCard() {
    return idCard;
  }

  public void setIdCard(String idCard) {
    this.idCard = idCard;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public Integer getSex() {
    return sex;
  }

  public void setSex(Integer sex) {
    this.sex = sex;
  }

  public Date getBirthDate() {
    return birthDate;
  }

  public void setBirthDate(Date birthDate) {
    this.birthDate = birthDate;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getRemarks() {
    return remarks;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks;
  }

  public String getIntention() {
    return intention;
  }

  public void setIntention(String intention) {
    this.intention = intention;
  }

  public String getConsumption() {
    return consumption;
  }

  public void setConsumption(String consumption) {
    this.consumption = consumption;
  }

  public Integer getCreateId() {
    return createId;
  }

  public void setCreateId(Integer createId) {
    this.createId = createId;
  }

  public String getCreateDate() {
    return createDate;
  }

  public void setCreateDate(String createDate) {
    this.createDate = createDate;
  }

  @Override
  public String toString() {
    return "BeforeUser{" +
            "userId=" + userId +
            ", photoImg='" + photoImg + '\'' +
            ", account='" + account + '\'' +
            ", nickname='" + nickname + '\'' +
            ", userCode=" + userCode +
            ", avatarUrl='" + avatarUrl + '\'' +
            ", studyDate=" + studyDate +
            ", status=" + status +
            ", freestyle='" + freestyle + '\'' +
            ", idCard='" + idCard + '\'' +
            ", phone='" + phone + '\'' +
            ", sex=" + sex +
            ", birthDate=" + birthDate +
            ", email='" + email + '\'' +
            ", remarks='" + remarks + '\'' +
            ", intention='" + intention + '\'' +
            ", consumption='" + consumption + '\'' +
            ", createId=" + createId +
            ", createDate=" + createDate +
            '}';
  }

  public BeforeUser(Integer userId, String photoImg, String account, String nickname, Integer userCode, String avatarUrl, Integer studyDate, Integer status, String freestyle, String idCard, String phone, Integer sex, Date birthDate, String email, String remarks, String intention, String consumption, Integer createId, String createDate) {
    this.userId = userId;
    this.photoImg = photoImg;
    this.account = account;
    this.nickname = nickname;
    this.userCode = userCode;
    this.avatarUrl = avatarUrl;
    this.studyDate = studyDate;
    this.status = status;
    this.freestyle = freestyle;
    this.idCard = idCard;
    this.phone = phone;
    this.sex = sex;
    this.birthDate = birthDate;
    this.email = email;
    this.remarks = remarks;
    this.intention = intention;
    this.consumption = consumption;
    this.createId = createId;
    this.createDate = createDate;
  }

  public BeforeUser() {
    super();
  }
}
